package com.jt.service;

import com.jt.anno.Wbh;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Override
//    @Wbh   //注解起到标记作用
    public void addUser(int a,String b) {
        System.out.println("添加用户信息");
//        int a = 1/0;
    }

    @Override
    public void delUser() {
        System.out.println("你没了，哈哈哈");
    }

    @Override
    @Wbh
    public String FindUser() {
       try {
           System.out.println("我他妈弄死你");
           int a = 1/0;
       }catch (Exception e){

       }finally {

       }
        return "张老师";
    }
}
